package com.xiaofeixia.common;

import org.springframework.stereotype.Component;


    /**
     * API 唯一标识
     */
    @Component("AppKey")
public class AppKey {
    MD5Util md5Util = new MD5Util();

    public Boolean GetAppKey(String appid) {
        String appidMD5 = md5Util.md5("xiao~fei!xia@xiao#fei$xia%123^.&+*+");
        System.out.print("MD5加密后的APPID唯一标识----->" + appidMD5);
        System.out.println("比较--->" + appidMD5.equals(appid));
        if (appidMD5.equals(appid)) {
            System.out.println(appidMD5.equals(appid));
            return true;
        }
        return false;
    }
}
